package com.erbao.disruptor;

import com.lmax.disruptor.EventHandler;

/**
 * @author CaoBaoYin
 * @since 2022/3/9 21:16
 */
public class LongEventHandler implements EventHandler<LongEvent> {
    @Override
    public void onEvent(LongEvent longEvent, long l, boolean b) throws Exception {
        Thread thread = Thread.currentThread();
        System.out.println(thread.getThreadGroup()+":"+thread.getName()+":消费序号"+l+"，对象值："+longEvent.getValue());
    }
}
